import request from '@/utils/request.js'
import {mappingAdress } from '@/utils/util.js'
//查询消息列表
export const queryMessagePage = data => request.post(mappingAdress.get('/weChat/userMessage/queryMyMessage'), data)

//更新消息为已读
export const updateReadFlag = data => request.post(mappingAdress.get('/weChat/userMessage/updateReadFlag'), data)

//批量更新消息为已读
export const batchUpdateReadFlag = data => request.post(mappingAdress.get('/weChat/userMessage/batchUpdateReadFlag'), data)

// 查询未读条数
export const queryMyMessageSum = data => request.post(mappingAdress.get('/weChat/userMessage/queryMyMessageSum'), data)

// 用户是否接收消息标志
export const queryWhetherUserReceiveFlag = data => request.post(mappingAdress.get('/weChat/userMessage/queryWhetherUserReceiveFlag'), data)

// 更新用户接收消息标志
export const UpdateUserReceiveFlag = data => request.post(mappingAdress.get('/weChat/userMessage/UpdateUserReceiveFlag'), data)
